package com.tionsy.springbootcomponents.repository;

import com.tionsy.springbootcomponents.bean.Teacher;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;

/**
 * @program: neo4j-demo
 * @description: 师生关系
 * @author: Jamie.shi
 * @create: 2020-05-27 11:28
 **/
public interface TeacherRepository extends Neo4jRepository<Teacher, Long> {
    Teacher findByName(@Param("name") String name);
}
